from pathlib import Path

import yaml


def get_yaml_data(file_path: str | Path):
    with open(file_path, "r", encoding="utf-8") as f:
        content = yaml.load(f, Loader=yaml.FullLoader)
    return content
